<?php 
session_start(); 
$pos = strpos($_SERVER['SERVER_NAME'], 'freeteam.streams.com');
if($pos === false){
	include_once('includes/classes/config.inc.php');
}else{
	include_once('includes/classes/config-local.inc.php');
}

include_once(abspath.'/includes/classes/class.database.php');
include_once(abspath.'/includes/classes/securesession.class.php');
 if($p != 'login'){ 
  $ss = new SecureSession();
  $ss->check_browser = true;
  $ss->check_ip_blocks = 2;
  $ss->secure_word = 'wiistream_';
  $ss->regenerate_id = true;
  
  if (!$ss->Check() || !isset($_SESSION['logged_in']))
  {
    header('Location: members.php?p=login');

  }
}

  
  
include_once(abspath.'/includes/funcs/sitefunc.php');

include_once(theme.'/top_home.php');
include_once(theme.'/member/center.php');
include_once(theme."/bottom_home.php");
if(isset($db)){$db->close();}
?>

